package com.hm.hsw2;

import java.util.HashMap;
import java.util.Map;
import java.util.stream.Collectors;
import java.util.stream.Stream;

public class Demo {
    public static void main(String[] args) {
        HashMap<String, String> class1 = new HashMap<>();
        class1.put("001","李晨");
        class1.put("002","范冰冰");
        HashMap<String, String> class2 = new HashMap<>();
        class2.put("001","马云");
        class2.put("002","马化腾");
        HashMap<String, HashMap<String, String>> school = new HashMap<>();
        school.put("Java基础班",class1);
        school.put("Java就业班",class2);
        System.out.println(school);
     school.entrySet().stream().map(o->o.getValue()).forEach(o->o.entrySet().stream().forEach(s-> System.out.println(s.getKey()+"->"+s.getValue())));

    }
}
